﻿@model string[]
@if (Model.Length == 0)
{
    string name = ViewData.TemplateInfo.HtmlFieldPrefix;
    for (int i = 0; i < 5; i++)
    { 
    <input type="text" name="@name"  value="" />
    }
}
else
{
    string name = ViewData.TemplateInfo.HtmlFieldPrefix;
    foreach (var item in Model)
    {
    <p>
        <input type="text" name="@name"  value="@item" />
    </p>
    }
}